package com.karry.yl.domain.baseinfo;

import com.baomidou.mybatisplus.annotations.TableName;
import com.karry.commons.base.SuperEntity;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * 说明 : 机构实体
 *
 * @author 田轩
 * @version 1.0.0
 * @dateTime 2017年7月8日 上午10:12:54
 */

@TableName("organization")
public class Organization extends SuperEntity {

    public static final int TYPE_NORMAL = 1;
    public static final int TYPE_LS = 2;
    public static final int TYPE_MF = 3;
    public static final int TYPE_FS = 4;
    /**
     * 机构类型 1-一般机构；2-连锁机构；3-一证多地机构 4-附属机构；
     */
    private Integer type;

    /**
     * 机构名称
     */
    private String name;

    /**
     * 法人
     */
    private String corporation;

    /**
     * 法人手机
     */
    private String corporationPhone;


    public static final int  NATURE_1 = 1;
    public static final int NATURE_2 = 2;
    public static final int NATURE_3 = 3;
    public static final int NATURE_4 = 4;
    /**
     * 机构性质 1-公办；2-民办；3-公建民营；4-民办公助
     */
    private Integer nature;

    /**
     * 机构类别 1-老年公寓;2-五保供养服务机构;3-社会福利院;4-光荣院;5-农村幸福院;6-居家养老;7-文化旅居养老;8-智慧养老;9-日间照料;10-医养结合
     */
    private Integer category;

    /**
     *  是否居家养老
     */
    private Boolean homeCare = false;

    /**
     *  是否有餐饮
     */
    private Boolean canyin = false;

    /**
     *  是否有医疗
     */
    private Boolean yiliao = false;

    /**
     * 机构星级 1-一星; 2-二星; 3-三星; 4-四星; 5-五星
     */
    private Integer star;

    /**
     * 是否智慧养老
     */
    private Boolean zhiHuiYangLao = false;

    /**
     * 是否医养结合W
     */
    private Boolean yiYangJieHe = false;


    private String cause; //打回原因

    /**
     * 注册资金
     */
    private String registeredCapital;

    /**
     * 注册时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date registeredDate;

    /**
     * 经营面积
     */
    private String totalArea;

    /**
     * 注册省, N - 1
     */
    private String registeredProvinceName;

    private String registeredProvinceCode;
    /**
     * 注册市, N - 1
     */
    private String registeredCityName;
    private String registeredCityCode;

    /**
     * 注册区, N - 1
     */
    private String  registeredAreaName;
    private String  registeredAreaCode;

    /**
     * 注册乡镇街道, N - 1
     */
    private String registeredTownName;
    private String registeredTownCode;


    /**
     * 注册村, N - 1
     */
    private String registeredVillageName;
    private String registeredVillageCode;

    /**
     * 注册详细地址
     */
    private String registeredAddress;

    /**
     * 所在地区省实体, N - 1
     */
    private String provinceName;
    private String provinceCode;

    /**
     * 所在地区市实体, N - 1
     */
    private String cityName;
    private String cityCode;

    /**
     * 所在地区区实体, N - 1
     */
    private String areaName;
    private String areaCode;

    /**
     * 所在地区区实体, N - 1
     */
    private String townName;
    private String townCode;

    //村
    private String villageName;
    private String villageCode;

    /**
     * 所在地区详细地址
     */
    private String address;

    /**
     * 联系人姓名
     */
    private String contacts;

    /**
     * 联系人手机
     */
    private String phone;

    /**
     * 联系人邮箱
     */
    private String email;

    /**
     * 是否取得养老许可
     */
    private Boolean haveTheLicense = false;

    private Long enterpriseId;  //所属企业ID
    private String enterpriseName; //所属企业名称

    private Long minfeiUnitsId; //所属民非ID
    private String minfeiUnitsName; //所属民非名称

    /**
     * 父级机构实体, N - 1
     */
    private String parentOrganizationName;
    private String parentOrganizationId;

    private String mzName;  //所属民証居名稱
    private String mzCode;

    private Long primaryId; //主机构Id
    private String primaryName; //主机构名称

    private Boolean primary; //是否主机构

    /**
     * 备案时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date shangBaoDate;

    /**
     * 是否备案
     */
    private  Integer filingStart;//备案状态 0未备案、1待回执、2已备案、3未通过
    private String lng;
    private String lat;
    private String jgRemark;
    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }


    public String getCorporation() {
        return corporation;
    }

    public void setCorporation(String corporation) {
        this.corporation = corporation;
    }

    public String getCorporationPhone() {
        return corporationPhone;
    }

    public void setCorporationPhone(String corporationPhone) {
        this.corporationPhone = corporationPhone;
    }

    public Integer getNature() {
        return nature;
    }

    public void setNature(Integer nature) {
        this.nature = nature;
    }

    public Integer getCategory() {
        return category;
    }

    public void setCategory(Integer category) {
        this.category = category;
    }

    public Boolean getHomeCare() {
        return homeCare;
    }

    public void setHomeCare(Boolean homeCare) {
        this.homeCare = homeCare;
    }

    public Integer getStar() {
        return star;
    }

    public void setStar(Integer star) {
        this.star = star;
    }

    public Boolean getZhiHuiYangLao() {
        return zhiHuiYangLao;
    }

    public void setZhiHuiYangLao(Boolean zhiHuiYangLao) {
        this.zhiHuiYangLao = zhiHuiYangLao;
    }

    public Boolean getYiYangJieHe() {
        return yiYangJieHe;
    }

    public void setYiYangJieHe(Boolean yiYangJieHe) {
        this.yiYangJieHe = yiYangJieHe;
    }

    public String getRegisteredCapital() {
        return registeredCapital;
    }

    public void setRegisteredCapital(String registeredCapital) {
        this.registeredCapital = registeredCapital;
    }

    public Date getRegisteredDate() {
        return registeredDate;
    }

    public void setRegisteredDate(Date registeredDate) {
        this.registeredDate = registeredDate;
    }

    public String getTotalArea() {
        return totalArea;
    }

    public void setTotalArea(String totalArea) {
        this.totalArea = totalArea;
    }

    public String getRegisteredProvinceName() {
        return registeredProvinceName;
    }

    public void setRegisteredProvinceName(String registeredProvinceName) {
        this.registeredProvinceName = registeredProvinceName;
    }

    public String getRegisteredProvinceCode() {
        return registeredProvinceCode;
    }

    public void setRegisteredProvinceCode(String registeredProvinceCode) {
        this.registeredProvinceCode = registeredProvinceCode;
    }

    public String getRegisteredCityName() {
        return registeredCityName;
    }

    public void setRegisteredCityName(String registeredCityName) {
        this.registeredCityName = registeredCityName;
    }

    public String getRegisteredCityCode() {
        return registeredCityCode;
    }

    public void setRegisteredCityCode(String registeredCityCode) {
        this.registeredCityCode = registeredCityCode;
    }

    public String getRegisteredAreaName() {
        return registeredAreaName;
    }

    public void setRegisteredAreaName(String registeredAreaName) {
        this.registeredAreaName = registeredAreaName;
    }

    public String getRegisteredAreaCode() {
        return registeredAreaCode;
    }

    public void setRegisteredAreaCode(String registeredAreaCode) {
        this.registeredAreaCode = registeredAreaCode;
    }

    public String getRegisteredTownName() {
        return registeredTownName;
    }

    public void setRegisteredTownName(String registeredTownName) {
        this.registeredTownName = registeredTownName;
    }

    public String getRegisteredTownCode() {
        return registeredTownCode;
    }

    public void setRegisteredTownCode(String registeredTownCode) {
        this.registeredTownCode = registeredTownCode;
    }

    public String getRegisteredAddress() {
        return registeredAddress;
    }

    public void setRegisteredAddress(String registeredAddress) {
        this.registeredAddress = registeredAddress;
    }

    public String getProvinceName() {
        return provinceName;
    }

    public void setProvinceName(String provinceName) {
        this.provinceName = provinceName;
    }

    public String getProvinceCode() {
        return provinceCode;
    }

    public void setProvinceCode(String provinceCode) {
        this.provinceCode = provinceCode;
    }

    public String getCityName() {
        return cityName;
    }

    public void setCityName(String cityName) {
        this.cityName = cityName;
    }

    public String getCityCode() {
        return cityCode;
    }

    public void setCityCode(String cityCode) {
        this.cityCode = cityCode;
    }

    public String getAreaName() {
        return areaName;
    }

    public void setAreaName(String areaName) {
        this.areaName = areaName;
    }

    public String getAreaCode() {
        return areaCode;
    }

    public void setAreaCode(String areaCode) {
        this.areaCode = areaCode;
    }

    public String getTownName() {
        return townName;
    }

    public void setTownName(String townName) {
        this.townName = townName;
    }

    public String getTownCode() {
        return townCode;
    }

    public void setTownCode(String townCode) {
        this.townCode = townCode;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getContacts() {
        return contacts;
    }

    public void setContacts(String contacts) {
        this.contacts = contacts;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public Boolean getHaveTheLicense() {
        return haveTheLicense;
    }

    public void setHaveTheLicense(Boolean haveTheLicense) {
        this.haveTheLicense = haveTheLicense;
    }

    public String getParentOrganizationName() {
        return parentOrganizationName;
    }

    public void setParentOrganizationName(String parentOrganizationName) {
        this.parentOrganizationName = parentOrganizationName;
    }

    public String getParentOrganizationId() {
        return parentOrganizationId;
    }

    public void setParentOrganizationId(String parentOrganizationId) {
        this.parentOrganizationId = parentOrganizationId;
    }

    public Long getEnterpriseId() {
        return enterpriseId;
    }

    public void setEnterpriseId(Long enterpriseId) {
        this.enterpriseId = enterpriseId;
    }

    public String getEnterpriseName() {
        return enterpriseName;
    }

    public void setEnterpriseName(String enterpriseName) {
        this.enterpriseName = enterpriseName;
    }

    public Long getMinfeiUnitsId() {
        return minfeiUnitsId;
    }

    public void setMinfeiUnitsId(Long minfeiUnitsId) {
        this.minfeiUnitsId = minfeiUnitsId;
    }

    public String getMinfeiUnitsName() {
        return minfeiUnitsName;
    }

    public void setMinfeiUnitsName(String minfeiUnitsName) {
        this.minfeiUnitsName = minfeiUnitsName;
    }

    public String getMzName() {
        return mzName;
    }

    public void setMzName(String mzName) {
        this.mzName = mzName;
    }

    public Long getPrimaryId() {
        return primaryId;
    }

    public void setPrimaryId(Long primaryId) {
        this.primaryId = primaryId;
    }

    public String getPrimaryName() {
        return primaryName;
    }

    public void setPrimaryName(String primaryName) {
        this.primaryName = primaryName;
    }

    public Boolean getPrimary() {
        return primary;
    }

    public void setPrimary(Boolean primary) {
        this.primary = primary;
    }

    public Date getShangBaoDate() {
        return shangBaoDate;
    }

    public void setShangBaoDate(Date shangBaoDate) {
        this.shangBaoDate = shangBaoDate;
    }

    public Boolean getCanyin() {
        return canyin;
    }

    public void setCanyin(Boolean canyin) {
        this.canyin = canyin;
    }

    public Boolean getYiliao() {
        return yiliao;
    }

    public void setYiliao(Boolean yiliao) {
        this.yiliao = yiliao;
    }

    public String getCause() {
        return cause;
    }

    public void setCause(String cause) {
        this.cause = cause;
    }

    public String getMzCode() {
        return mzCode;
    }

    public void setMzCode(String mzCode) {
        this.mzCode = mzCode;
    }

    public String getRegisteredVillageName() {
        return registeredVillageName;
    }

    public void setRegisteredVillageName(String registeredVillageName) {
        this.registeredVillageName = registeredVillageName;
    }

    public String getRegisteredVillageCode() {
        return registeredVillageCode;
    }

    public void setRegisteredVillageCode(String registeredVillageCode) {
        this.registeredVillageCode = registeredVillageCode;
    }

    public String getVillageName() {
        return villageName;
    }

    public void setVillageName(String villageName) {
        this.villageName = villageName;
    }

    public String getVillageCode() {
        return villageCode;
    }

    public void setVillageCode(String villageCode) {
        this.villageCode = villageCode;
    }

    public Integer getFilingStart() {
        return filingStart;
    }

    public void setFilingStart(Integer filingStart) {
        this.filingStart = filingStart;
    }

    public String getLng() {
        return lng;
    }

    public void setLng(String lng) {
        this.lng = lng;
    }

    public String getLat() {
        return lat;
    }

    public void setLat(String lat) {
        this.lat = lat;
    }

    public String getJgRemark() {
        return jgRemark;
    }

    public void setJgRemark(String jgRemark) {
        this.jgRemark = jgRemark;
    }
}
